package com.cddx.logistics.service.impl;

import com.cddx.logistics.domain.vo.WireStatisticsVo;
import com.cddx.logistics.mapper.WireStatisticsMapper;
import com.cddx.logistics.service.WireStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;

@Service
public class WireStatisticsServiceImpl implements WireStatisticsService {

    @Autowired
    private WireStatisticsMapper wireStatisticsMapper;

    @Override
    public List<WireStatisticsVo> getWireStatisticsByCondition(
            Date startDate, Date endDate, String specifications
    ) {
        return wireStatisticsMapper.selectWireStatisticsByCondition(
                startDate, endDate, specifications
        );
    }
    @Override
    public List<String> getWireNames() {
        return wireStatisticsMapper.selectWireNames();
    }
}
